﻿#include <stdio.h>
int main()
{
    char input[5] = { 0 };
    char pass[] = "123";
    printf("input password:\n");
    gets(input);
    input[3] = 0;
    if (strcmp(input, pass) != 0)
    {
        printf("fail\n");
        return -1;
    }
    printf("ok\n");
    return 0;
}
